package com.itheima.pinda.authority.biz.service.auth;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Description: 验证码
 * @Author: ysf
 * @CreateTime: 2024-11-13  11:12
 * @Version: 1.0
 */
public interface ValidateCodeService {
    /**
     * 生成验证码
     */
    void create(String key, HttpServletResponse response) throws IOException;

    /**
     * 校验验证码
     */
    boolean check(String key, String value);
}
